package com.dt.sns;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
@EnableAutoConfiguration
@ServletComponentScan
public class WebAppStart extends SpringBootServletInitializer {

	private static Logger logger = LoggerFactory.getLogger(WebAppStart.class);

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(WebAppStart.class);
	}

	public static void main(String[] args) {
		logger.info("Infotag Webapp Starting");
		SpringApplication.run(WebAppStart.class, args);
		logger.info("Infotag Webapp Start Success");

	}
}